import java.util.*;

public class RandomIterable implements Iterable<Integer> {
	public int count, from, to;

	public RandomIterable(int count, int from, int to) {
		this.count = count;
		this.from = from;
		this.to = to;
	}

	public Iterator<Integer> iterator() {
		return new RandomIterator(this);
	}

	public static void main(String[] args) {
		RandomIterable rand = new RandomIterable(100, 1, 1000);

		for (Integer num : rand) {
			System.out.println(num);
		}
	}
}
